#include "msserif11.h"
#include <nds.h>

using namespace WoopsiUI;

static const u16 MSSerif11_glyphdata[338] = {
/* '!' */	0xFC80,
/* '"' */	0xB680,0x0000,0x0000,
/* '#' */	0x52BE,0xA52B,0xEA50,0x0000,
/* '$' */	0x2698,0x4219,0x6200,
/* '%' */	0x60C8,0xA48C,0x8080,0x9892,0x8983,0x0000,0x0000,
/* '&' */	0x6122,0x4306,0x12E5,0x4474,0x0000,0x0000,
/* ''' */	0xE000,
/* '(' */	0x5AAA,0x9400,
/* ')' */	0xA555,0x6800,
/* '*' */	0x9669,0x0000,0x0000,
/* '+' */	0x0008,0x4F90,0x8000,0x0000,
/* ',' */	0x00C0,
/* '-' */	0x00C0,0x0000,
/* '.' */	0x0080,
/* '/' */	0x556A,0x8000,
/* '0' */	0x6999,0x9999,0x6000,
/* '1' */	0x5924,0x92E0,0x0000,
/* '2' */	0x6911,0x2489,0xF000,
/* '3' */	0x6911,0x6119,0x6000,
/* '4' */	0x1335,0x59F1,0x1000,
/* '5' */	0xF88E,0x9119,0x6000,
/* '6' */	0x6988,0xE999,0x6000,
/* '7' */	0xF992,0x2244,0x4000,
/* '8' */	0x6999,0x6999,0x6000,
/* '9' */	0x6999,0x7111,0x6000,
/* ':' */	0x2080,
/* ';' */	0x20C0,
/* '<' */	0x0000,0x3641,0x8300,0x0000,
/* '=' */	0x0000,0x0F83,0xE000,0x0000,
/* '>' */	0x0001,0x8304,0xD800,0x0000,
/* '?' */	0x6991,0x2440,0x4000,
/* '@' */	0x3C42,0x9DA5,0xA5A5,0xA59A,0x403C,0x0000,
/* 'A' */	0x1020,0xA142,0x889F,0x22EE,0x0000,0x0000,
/* 'B' */	0xF252,0x9725,0x29F0,0x0000,
/* 'C' */	0x7C61,0x0842,0x1170,0x0000,
/* 'D' */	0xF124,0x5145,0x1452,0xF000,0x0000,
/* 'E' */	0xFA50,0xA729,0x09F8,0x0000,
/* 'F' */	0xFA50,0xA729,0x08E0,0x0000,
/* 'G' */	0x7A28,0x209E,0x28A2,0x7000,0x0000,
/* 'H' */	0xEE89,0x1227,0xC891,0x22EE,0x0000,0x0000,
/* 'I' */	0xE924,0x92E0,0x0000,
/* 'J' */	0x7222,0x222A,0xC000,
/* 'K' */	0xEC91,0x4306,0x0A12,0x22E6,0x0000,0x0000,
/* 'L' */	0xE210,0x8421,0x09F8,0x0000,
/* 'M' */	0xC1A0,0x98CC,0x6552,0xA924,0x92E3,0x8000,0x0000,
/* 'N' */	0xCE89,0x9325,0x4A93,0x26E4,0x0000,0x0000,
/* 'O' */	0x7463,0x18C6,0x3170,0x0000,
/* 'P' */	0xF252,0x9721,0x08E0,0x0000,
/* 'Q' */	0x7463,0x18C6,0x3171,0x8600,
/* 'R' */	0xF124,0x9271,0x4492,0xEC00,0x0000,
/* 'S' */	0x7644,0x4DC0,0x0000,
/* 'T' */	0xFD48,0x4210,0x8470,0x0000,
/* 'U' */	0xEE89,0x1224,0x4891,0x2238,0x0000,0x0000,
/* 'V' */	0xEE89,0x1222,0x850A,0x0810,0x0000,0x0000,
/* 'W' */	0xE3A0,0x9049,0x2492,0xA954,0x4422,0x0000,0x0000,
/* 'X' */	0xEE88,0xA141,0x050A,0x22EE,0x0000,0x0000,
/* 'Y' */	0xEE89,0x1142,0x8204,0x0838,0x0000,0x0000,
/* 'Z' */	0xFC44,0x2221,0x11F8,0x0000,
/* '[' */	0xEAAA,0xAC00,
/* '\' */	0xAA95,0x4000,
/* ']' */	0xD555,0x5C00,
/* '^' */	0x6900,0x0000,0x0000,
/* '_' */	0x0000,0x0000,0x0000,0x3E00,
/* '`' */	0x9000,0x0000,
/* 'a' */	0x0006,0x1799,0x7000,
/* 'b' */	0xC210,0xE4A5,0x2930,0x0000,
/* 'c' */	0x0006,0x9889,0x6000,
/* 'd' */	0x3117,0x9999,0x7000,
/* 'e' */	0x0006,0x9F89,0x6000,
/* 'f' */	0x2974,0x9260,0x0000,
/* 'g' */	0x0007,0x9999,0x7160,
/* 'h' */	0xC210,0xE4A5,0x2948,0x0000,
/* 'i' */	0x4355,0x4000,
/* 'j' */	0x4355,0x5800,
/* 'k' */	0xC210,0x9531,0x8A48,0x0000,
/* 'l' */	0xD555,0x4000,
/* 'm' */	0x0000,0x00B6,0x4949,0x4949,0x4900,0x0000,
/* 'n' */	0x0001,0x64A5,0x2948,0x0000,
/* 'o' */	0x0006,0x9999,0x6000,
/* 'p' */	0x0001,0x64A5,0x2972,0x3800,
/* 'q' */	0x0006,0x9999,0x7130,
/* 'r' */	0x000B,0x5444,0x6000,
/* 's' */	0x0038,0x89C0,0x0000,
/* 't' */	0x0974,0x9220,0x0000,
/* 'u' */	0x0001,0xB4A5,0x2938,0x0000,
/* 'v' */	0x0001,0x18A9,0x4420,0x0000,
/* 'w' */	0x0000,0x06B9,0x356A,0xA244,0x0000,0x0000,
/* 'x' */	0x0001,0xB510,0x8AD8,0x0000,
/* 'y' */	0x0009,0x9996,0x4480,
/* 'z' */	0x000F,0x9249,0xF000,
/* '{' */	0x2925,0x1248,0x8000,
/* '|' */	0x7FC0,
/* '}' */	0x8924,0x524A,0x0000,
/* '~' */	0x6D80,0x0000,0x0000,0x0000,
/* 0x7F */	0x3FFF,0xF000,
};

static const u16 MSSerif11_offset[95] = {
    0,    1,    4,    8,   11,   18,   24,   25,   27,   29,   32,   36,   37,   39,   40,   42,
   45,   48,   51,   54,   57,   60,   63,   66,   69,   72,   73,   74,   78,   82,   86,   89,
   95,  101,  105,  109,  114,  118,  122,  127,  133,  136,  139,  145,  149,  156,  162,  166,
  170,  174,  179,  182,  186,  192,  198,  205,  211,  217,  221,  223,  225,  227,  230,  234,
  236,  239,  243,  246,  249,  252,  255,  258,  262,  264,  266,  270,  272,  278,  282,  285,
  289,  292,  295,  298,  301,  305,  309,  315,  319,  322,  325,  328,  329,  332,  336
};

static const u8 MSSerif11_width[95] = {
 1, 3, 5, 4, 9, 7, 1, 2, 2, 4, 5, 1, 2, 1, 2, 4,
 3, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 5, 5, 5, 4, 8,
 7, 5, 5, 6, 5, 5, 6, 7, 3, 4, 7, 5, 9, 7, 5, 5,
 5, 6, 3, 5, 7, 7, 9, 7, 7, 5, 2, 2, 2, 4, 5, 2,
 4, 5, 4, 4, 4, 3, 4, 5, 2, 2, 5, 2, 8, 5, 4, 5,
 4, 4, 3, 3, 5, 5, 7, 5, 4, 4, 3, 1, 3, 5, 2
};

MSSerif11::MSSerif11(u8 fixedWidth) : PackedFont1 (
	33,
	127,
	MSSerif11_glyphdata,
	MSSerif11_offset,
	MSSerif11_width,
	12,
	3,
	8,
	9
) {
	if (fixedWidth) setFontWidth(fixedWidth);
};
